package cn.yhr;

import cn.yhr.summerboot.context.IocApplication;
import cn.yhr.summerboot.context.SummerApplication;
import cn.yhr.summerboot.context.annon.SummerBoot;
import cn.yhr.ioctest.test.TestInterface;

@SummerBoot
public class RunApplication {

    public static void main(String[] args){
        SummerApplication.start(RunApplication.class,args);
        IocApplication ioc = IocApplication.getApplication();

        interfaceIocTest(ioc);
    }

    private static void interfaceIocTest(IocApplication ioc) {
        TestInterface myIocTestService =(TestInterface) ioc.get("testInterface");
        myIocTestService.test();
    }
}
